/**
 * org.assess.oa.system.service.TbDepartmentService
 */
package org.assess.oa.system.service;

import org.assess.oa.system.bean.TbDepartment;

/**
 * @description 部门管理的Service层接口
 * @author XiaLongxiang
 * @createtime 2012-5-15 上午9:25:33
 */
public interface TbDepartmentService {
    /**
     * 根据条件查询部门列表
     * @return
     */
    public String queryTbDepartmentAsList(TbDepartment department);
    
    /**
     * 根据上级部门编码(s)，递归查询出它所包含的下级部门
     * @param department
     * @return
     */
    public String queryTbDepartmentAsStartPrior(TbDepartment department);
    
    /**
     * 加载部门下拉树所需要的JSON数据
     * @param department
     * @return
     */
    public String queryDepartmentAsJsonArray(TbDepartment department);
    
    /**
     * 修改部门信息的valid_flag标识
     * @param department
     * @return
     */
    public String updateValid(TbDepartment department);
}
